app.service('listSve', function ($http,$q,baseUrlAll) {
	var oUrl = baseUrlAll;
	//return baseUrl
    this.returnBase = function(){
	    return oUrl;
    }
   //房源列表
    this.hList = function(){
    	var baseUrl = oUrl+"hardware-sys/admin/house/list.json";
	    var service = {};
	    var hList = new baseService($http, $q, baseUrl);
	    return hList;
    }
    //导出xsl表格
    this.outList = function(){
    	var baseUrl =oUrl+"hardware-service/api/excel/houseExportByUnit.json";
	    return baseUrl;
    }
 //-------------------------------------------------------------------------//   
    
    //设备管理列表
    this.sList = function(){
    	var baseUrl = oUrl+"hardware-sys/admin/hardware/list.json";
	    var service = {};
	    var sList = new baseService($http, $q, baseUrl);
	    return sList;
    }
    //电量历史
    this.powerList = function(){
    	var baseUrl = oUrl+"hardware-sys/admin/ammeter/log.do";
	    var service = {};
	    var powerList = new baseService($http, $q, baseUrl);
	    return powerList;
    }
     //电量状态
    this.doorList = function(){
    	var baseUrl = oUrl+"hardware-sys/admin/doorlock/status.do";
	    var service = {};
	    var powerList = new baseService($http, $q, baseUrl);
	    return powerList;
    }
      //清除所有密码
    this.doorClear = function(){
    	var baseUrl = oUrl+"hardware-sys/admin/doorlock/clear.do";
	    var service = {};
	    var powerList = new baseService($http, $q, baseUrl);
	    return powerList;
    }
      //开门记录
    this.doorClear_1 = function(){
    	var baseUrl = oUrl+"hardware-sys/admin/hardware/openLockLog.json";
	    var service = {};
	    var powerList = new baseService($http, $q, baseUrl);
	    return powerList;
    }
    //断电通电按钮
   this.powerLoop = function(){
    	var baseUrl = oUrl+"hardware-sys/admin/ammeter/control.do";
	    var service = {};
	    var powerList = new baseService($http, $q, baseUrl);
	    return powerList;
    }
   //在线通电状态
   this.zStatus = function(){
    	var baseUrl = oUrl+"hardware-sys/admin/ammeter/status.do";
	    var service = {};
	    var powerList = new baseService($http, $q, baseUrl);
	    return powerList;
    }
   //系统日志
    this.fList = function(){
    	var baseUrl = oUrl+"hardware-sys/admin/userLog/list.json";
	    var service = {};
	    var sList = new baseService($http, $q, baseUrl);
	    return sList;
    }
    
    //租客管理
    this.tenantList = function(){
    	var baseUrl = oUrl+"hardware-sys/admin/member/list.json";
	    var service = {};
	    var sList = new baseService($http, $q, baseUrl);
	    return sList;
    }
    
    //风控管理
    this.riskManagementList = function(){
    	var baseUrl = oUrl+"hardware-sys/admin/baidu_fk/list.json";
	    var service = {};
	    var sList = new baseService($http, $q, baseUrl);
	    return sList;
    }
    
    //登录
    this.loginList = function(){
    	var baseUrl = oUrl+"hardware-sys/admin/index/checkLogin.do";
	    var service = {};
	    var sList = new baseService($http, $q, baseUrl);
	    return sList;
    }
   
})